package cn.wolfcode.p2p.base.util;

import lombok.Getter;
import lombok.Setter;

@Getter@Setter
public class AjaxResult {
    private boolean success = true;
    private String msg;

    public AjaxResult() {

    }
    //保存成功,{success:true,msg:'保存成功'}
    public AjaxResult(String msg) {
        this.msg = msg;
    }
    //保存成功,{success:false,msg:'保存失败'}
    public AjaxResult(boolean success, String msg) {
        this.success = success;
        this.msg = msg;
    }
}
